#ifndef QUPDATEDIALOG_H
#define QUPDATEDIALOG_H

#include "../libs/core/qbasedialog.h"

namespace Ui {
class QUpdateDialog;
}

struct tagDeviceInfo;

class QUpdateDialog : public QBaseDialog
{
    Q_OBJECT
    
public:
    explicit QUpdateDialog(tagDeviceInfo* device,QWidget *parent = 0);
    ~QUpdateDialog();
protected:
    void    clear();
protected slots:
    void    update_success();
    void    update_failed();
    void    offline(const QString &uuid="");
protected:
    void    file_data_append_number(int value);
private:
    Ui::QUpdateDialog *ui;
protected:
    tagDeviceInfo       *m_device_info;
    QByteArray          m_file_data;
private slots:
    void on_pathBtn_clicked();
    void on_cancelBtn_clicked();
    void on_okBtn_clicked();
};

#endif // QUPDATEDIALOG_H
